package com.cmccgz.udacs_landlord_webapp.main.unlock;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.content.ServiceConnection;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;

/**
 * @author: June
 * @Descripion:
 * @date 2017/6/7 15:44
 */

public interface BtUnlockContract {

    interface Presenter extends BasePresenter {
        void unlock(String deviceName,String deviceAddress);

        void bluetoothEnable();

        void displayData(Intent intent);

        void unbindService();

        void scanDevice(boolean scan);

        void deviceDisConnect();

        void deviceConnect();
    }

    interface View extends BaseView<Presenter> {

        BluetoothAdapter checkBlueTooth();

        void bindService(ServiceConnection connection);

        void unbindService(ServiceConnection connection);

        void dismissWaitingDialog();

        void showWaitingDialog();

        void showUnlockDialog();

        void dismissUnlockDialog(String msg);

        void addDevice(BluetoothDevice device);
    }
}
